package com.xm.spring5;

public class Book {
    private String BookName;
    private String bauthor;
    private String address;

    //set方法注入
    public void setBookName(String bookName) {
        BookName = bookName;
    }

    public void setBauthor(String bauthor) {
        this.bauthor = bauthor;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    //    public static void main(String[] args) {
//        Book book = new Book();
////        book.setBookName("asd");
////        System.out.println(book.BookName);
//    }

    public void testDemo() {
        System.out.println(BookName + "::" + bauthor + "::" + address);
    }
}
